﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Eleanor.Website.Utility;
using Eleanor.BLL;

namespace Eleanor.Website.Controllers
{
    public class HomeController : EleanorControllerBase
    {
        private PaintingBLL paintingBLL = new PaintingBLL();

        public ActionResult Index()
        {
            ViewBag.HottestPaintings = paintingBLL.GetAllHottestPaintings();

            ViewBag.NavigationName = "home";
            ViewBag.Title = SettingBLL.Instance.GetWebsiteName();
            ViewBag.KeyWord = SettingBLL.Instance.GetWebsiteKeyword();
            ViewBag.Description = SettingBLL.Instance.GetWebsiteDescription();
            return View();
        }

    }
}
